//
//  BVMineCell1.m
//  XiangYu
//
//  Created by YYKJ on 2017/6/1.
//  Copyright © 2017年 YYKJ. All rights reserved.
//

#import "BVMineCell1.h"

@implementation BVMineCell1

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        [self layoutUI];
    }
    
    return self;
}

-(void)layoutUI{
    
    //标题图标
    self.img = [[UIImageView alloc]init];
    [self.contentView addSubview:self.img];
    [self.img.layer setMasksToBounds:YES];
    [self.img.layer setCornerRadius:3.0];
    self.img.sd_layout.
    topSpaceToView(self.contentView,15)
    .bottomSpaceToView(self.contentView,15)
    .leftSpaceToView(self.contentView,10)
    .widthEqualToHeight();
    
    //标题label
    self.titleLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.titleLb];
    [self.titleLb setTextColor:[UIColor BVTextDarkGrayColor]];
    [self.titleLb setTextAlignment:NSTextAlignmentLeft];
    [self.titleLb setFont:[UIFont systemFontOfSize:14]];
    self.titleLb.sd_layout
    .topSpaceToView(self.contentView,5)
    .leftSpaceToView(_img,10)
    .bottomSpaceToView(self.contentView,5)
    .widthIs(80);
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
